<?php
include('../config.php');
if($_GET['id'])
{
	$id=intval($_GET['id']);
	$total =(int) mysql_num_rows(mysql_query("SELECT * FROM user"));
	$sql = "DELETE FROM user WHERE uID='".$id."'";
	mysql_query( $sql) or die (mysql_error());
	for ($i = $id; $i<$total;$i++) {
		$j = $i+1;
		mysql_query("UPDATE user SET uID='".$i."' WHERE uID='".$j."'") or die(mysql_error());
	}
}
?>